<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <h3 v-text="title"></h3>
        <ul v-for="(item,index) in list">
            <li>{{item}} - {{index}}</li>
        </ul>
        <hr>
        <ul v-for="item in list">
            <li v-text="item"></li>
        </ul>
    </div>

    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                list: ['西瓜', '苹果', '鸭梨', '榴莲'],
                title:'小黑的水果店'
            }
        })
    </script>
</body>

</html>